UNPKG
@nadeshikon/plugin-nextjs
Version:
latest (4.29.5-4)
4.29.5
4.29.5-4
4.29.5-3
4.29.5-2
4.29.5-1
Run Next.js seamlessly on Netlify
github.com/netlify/next-runtime
netlify/next-runtime
@nadeshikon/plugin-nextjs
/
demos
/
base-path
/
pages
/
dynamic
/
[dynamic]
/
index.js
14 lines
(10 loc)
•
303 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function
Dynamic
(
) {
return
<
div
>
This is the page with a dynamic path.
</
div
>
}
export
const
getStaticPaths
=
async
(
) => {
return
{
paths
: [
'/dynamic/dynamic-1'
],
fallback
:
false
} }
export
const
getStaticProps
= (
{ params }
) => {
return
{
props
: params } }
export
default
Dynamic